import sys
import Tokenizer
import ClauseDivider
import Resources.Enums
from Classes import Token


def AutoCode(strList):
    tokenStrList = Tokenizer.Tokenize(strList)

    sentences = ClauseDivider.DivideClause(tokenStrList)

    for sentence in sentences:
        sentence.predictClauseType()
        sentence.sort()

    return sentences


# if __name__ == '_main_':
#     strList = sys.argv[1]
#     AutoCode(strList)
